package com.gem.back.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gem.back.entity.AoaSysMenu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hhhy
 * @since 2020-02-22
 */
@Repository
public interface AoaSysMenuMapper extends BaseMapper<AoaSysMenu> {
    /**
     *根据用户名获取对应的菜单
     */
    List<AoaSysMenu> findByUserName(@Param("username") String userName);
    /**
     * 查询所有菜单
     */
    List<AoaSysMenu> findAllMenu();

}
